//
//  BaseModel.m
//  BeautyCar
//
//  Created by 刘剑锋 on 2022/4/12.
//

#import "YCBaseModel.h"
//#import <objc/runtime.h>

@implementation YCBaseModel

+ (NSDictionary *)mj_replacedKeyFromPropertyName
{
    return @{@"cid":@"id"};
}


////归档 -- 好像用不到
//- (void)encodeWithCoder:(NSCoder *)aCoder{
//    unsigned int outCount = 0;
//    Ivar *ivars = class_copyIvarList([self class], &outCount);
//    for (unsigned int i =0; i<outCount; i++) {
//        Ivar ivar = ivars[i];
//        NSString*key = [NSString stringWithUTF8String:ivar_getName(ivar)];
//
//        id value = [self valueForKey:key];
//        [aCoder encodeObject:value forKey:key];
//    }
//    free(ivars);
//}
//
////解归档
//- (nullable instancetype)initWithCoder:(NSCoder *)aDecoder{
//    if (self = [super init]) {
//        unsigned int OutCount = 0;
//        Ivar *ivars = class_copyIvarList([self class], &OutCount);
//        for (unsigned int i =0; i<OutCount; i++) {
//            Ivar ivar = ivars[i];
//            NSString *key = [NSString stringWithUTF8String:ivar_getName(ivar)];
//            [self setValue:[aDecoder decodeObjectForKey:key] forKey:key];
//        }
//        free(ivars);
//    }
//    return  self;
//}

@end
